js program to find area of a triangle